

package project_2_10;
import java.util.Scanner;
import java.lang.Math;

public class Project_2_10 {

  
    public static void main(String[] args) {
        double s, a, b, c, result;
      Scanner scan= new Scanner(System.in);
     System.out.println("enter 3 sides of a triangle:");
      a = scan.nextDouble();
       b = scan.nextDouble();
        c = scan.nextDouble();
        
        s = (a+b+c)/2;
        result = Math.sqrt(s*(s-a)*(s-b)*(s-c));
        System.out.println("Area = "+result);
        
        
    }
    
}
